<div class="has-checkbox" ng-class="{'item-has-children':!isLeaf(item)}">
  <ion-checkbox class="item-icon-left item-button-right" ng-model="item.isChecked" ng-click="warpCallback('itemClicked', item, $event);">
    <i class="icon dark2 {{getItemIcon(item)}}"></i>
    {{item[textField]}}
  </ion-checkbox>
  <div class="list sub-list" ng-if="!isLeaf(item)">
    <div class="item-wrapper" ng-repeat="item in item.children" ng-include="recursionTemplate"></div>
  </div>
</div>
